﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.InboundOrderDetail.DTO
{
    public class ReceivingBillOrderMaterialsDto
    {
        public int Id { get; set; }

        /// <summary>
        /// 收货单编码
        /// </summary>
        public string? OrderNo { get; set; }

        /// <summary>
        /// 所属仓库id
        /// </summary>
        public int StoreId { get; set; }

        /// <summary>
        /// 海宁仓位编码
        /// </summary>
        public string StoreLocationCode { get; set; }

        public List<ReceivingBillOrderMaterialsDetailDto> ReceivingBillOrderMaterialsDetailDto { get; set; }

        [SugarColumn(IsIgnore = true)]
        public int? NowUserId { get; set; } = 0;

        [SugarColumn(IsIgnore = true)]
        public string? NowUserRealName { get; set; }
    }

    public class ReceivingBillOrderMaterialsDetailDto
    {
        /// <summary>
        /// 收货明细ID
        /// </summary>
        public int ReceivingBillDetailId { get; set; }
        /// <summary>
        /// 收获数量
        /// </summary>
        public decimal ReceivedQty { get; set; }

        public int? OwerId { get; set; }

        public int? MaterialId { get; set; }

        public string? MaterialName { get; set; }

        public string MaterialCode { get; set; }

        public string? MaterialBatchNo { get; set; }

        public string? DeptName { get; set; }
        /// <summary>
        /// 物资明细id
        /// </summary>
        public int? CheckInfoId { get; set; }

        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProductDate { get; set; }

        /// <summary>
        /// 批次号说明
        /// </summary>
        public string? BatchNoExplain { get; set; }
        /// <summary>
        /// 出厂日期
        /// </summary>
        public DateTime? OutFactoryDate { get; set; }
        /// <summary>
        /// 生产厂家
        /// </summary>
        public string? ProduceFactory { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
